.notes__sidebar {
  width: 350px;
  background-color: #F8F9FA;
  padding: 1.5em;
  border-right: 2px solid #E9ECEF;
  height: 100vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.notes__add {
  width: 100%;
  padding: 0.5rem;
  background: #4A6EE0;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  font-size: 1.25em;
  font-weight: bold;
}

.notes__add:hover {
  background: #3B5BB0;
}

.notes__list {
  max-height: 80vh;
  overflow-y: auto;
}

.notes__list-item {
  margin-bottom: 1em;
  padding: 1.2em;
  height: 170px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 2px solid #E9ECEF;
  margin: 5px;
  border-radius: 8px;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  width: calc(100% - 10px);
  box-sizing: border-box;
}

.notes__list-item.selected {
  border-left: 4px solid #4A6EE0;
  background: #F0F7FF;
  transform: translateX(5px);
}

.notes__list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: #F0F0F0;
}

.notes__small-title {
  font-weight: bold;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 10px;
}

.notes__small-body {
  margin-bottom: 5px;
  color: #555;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  height: 4.5em;
  padding: 0 10px;
}

.notes__small-updated {
  font-size: 0.8em;
  color: #666;
  text-align: right;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.notes__delete-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  padding: 0.3rem;
  border-radius: 3px;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.notes__delete-button:hover {
  opacity: 1 !important;
  background-color: rgba(255, 0, 0, 0.1);
}

.notes__controls {
  display: flex;
  gap: 8px;
  margin-bottom: 1em;
}

.notes__control-btn {
  flex: 1;
  padding: 8px;
  background: #F8F9FA;
  border: 2px solid #4A6EE0;
  border-radius: 8px;
  color: #4A6EE0;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.notes__control-btn:hover {
  background: #4A6EE0;
  color: white;
}

/* 新增样式 */
.notes__details {
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.notes__details-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.notes__details-body {
  font-size: 1em;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

.notes__details-updated {
  font-size: 0.9em;
  color: #999;
  text-align: right;
}

.notes__header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}
